<%@page contentType="text/html;charset=UTF-8"%>
<%@include file="../common.jsp"%>
<!DOCTYPE HTML>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>Application List</title>
	<link href="${ctx}/resources/css/bootstrap/dashboard.css" rel="stylesheet">
	<link href="${ctx}/resources/css/bootstrap/bootstrap.min.css" rel="stylesheet">
	<script type="text/javascript" src="${ctx}/resources/js/highcharts/jquery-1.8.2.min.js"></script>
	<script src="${ctx}/resources/js/monitor/xl-monitor.js"></script>
    <%@include file="../common/head.jsp"%>
	<style type="text/css">
		${demo.css}
		.col-sm-3{
			width : 33%;
		}
        table{table-layout: fixed}

	</style>

</head>
<body>
<div class="p10 bg-fff">
    <div class="ant-breadcrumb">
            <span>
                <span class="ant-breadcrumb-link">首页</span>
                <span class="ant-breadcrumb-separator">/</span>
            </span>
            <span >
                <span class="ant-breadcrumb-link">项目列表</span>
                <span class="ant-breadcrumb-separator" >/</span>
            </span>
    </div>
</div>

<div class="container-solid">

    <div class="p20">
        <div class="bg-fff">
        <ul class="ant-menu ant-menu-horizontal  ant-menu-light ant-menu-root">
            <li class="ant-menu-item-selected ant-menu-item" ><span><c:if test="${serverName!=null}">${serverName}-</c:if>项目列表</span></li>
            <div class="p15 pr20">
                <a class="btn btn-sm btn-info pull-right" href="${ctx}/project/settings">创建项目</a>
            </div>
        </ul>
        <div class="table-responsive">
            <table class="table table-striped table-hover">
                <thead>
                <tr>
                    <th width="5%">#序号</th>
                    <th width="10%">项目名称</th>
                    <th width="15%">主页</th>
                    <th width="15%">GIT地址</th>
                    <th width="10%">描述</th>
                    <th width="10%">最后提交时间</th>
                    <th width="10%">操作</th>
                </tr>
                </thead>
                <tbody>
                <c:forEach items="${projects}" var="project" varStatus="projectStatus">
                    <tr>
                        <td>${projectStatus.index + 1}</td>
                        <td class="ell"><a href="${ctx}/project/settings?id=${project.id}">${project.projName}&nbsp;</a></td>
                        <td class="ell"><a href="${project.homePage}">${project.homePage}&nbsp;</a></td>
                        <td class="ell">${project.gitSshUrl}&nbsp;</td>
                        <td class="ell">${project.projDesc}&nbsp;</td>
                        <td><fmt:formatDate value="${project.lastCommitDate}" type="both" pattern="yyyy-MM-dd HH:mm:ss"/>&nbsp;</td>
                        <td>
                            <%--<a href="${ctx}/project/build?id=${project.id}">build</a>&nbsp;&nbsp;|&nbsp;&nbsp;--%>
                            <a href="${ctx}/version/list?projId=${project.id}">发布</a>
                        </td>
                    </tr>
                </c:forEach>

                </tbody>
            </table>
        </div>
        </div>
    </div>
</div>
</body>
</html>
